package com.nf.health.app.sport_recipe.customview;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

import com.nf.health.app.R;
import com.nf.health.app.activity.hostopal.MyHostipalListActivity;
import com.nf.health.app.utils.ActivityUtils;

/**
 * Created by he_pan on 2017/4/12.
 * The only genius that is worth anything is the genius for hard work
 *
 * @author he_pan
 * @Description 没有运动方案
 */

public class HaveNoSportView extends LinearLayout {

    protected LayoutInflater inflater;
    protected Context context;

    public HaveNoSportView(final Context context) {
        super(context);
        this.context = context;
        inflater = LayoutInflater.from(context);
        View v = inflater.inflate(R.layout.sport_recipe_no, this);
        v.findViewById(R.id.tv_go_hospital).setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                ActivityUtils.showActivity(context, MyHostipalListActivity.class);
            }
        });
    }

}
